class Bookmark < ActiveRecord::Base
  belongs_to :user
  belongs_to :word

  validates_uniqueness_of :user_id, :scope => :word_id, :message => "单词已经被用户收藏了"
end